package com.taokatao.cardmee.business.cardcrud;

import android.content.Context;
import android.util.AttributeSet;

import com.makeramen.roundedimageview.RoundedImageView;


public class CardPicPreview extends RoundedImageView {

    public CardPicPreview(Context context) {
        this(context, null);
    }

    public CardPicPreview(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int widthSize = MeasureSpec.getSize(widthMeasureSpec);
        int heightSize = (int) (widthSize * 0.632f);
        setMeasuredDimension(widthSize, heightSize);
    }
}
